package com.tamecode.chapter06.sec6;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: Qiongchao
 * @Version: 1.0.0
 * @Date: 2023/10/11
 */
public class MailSenderStarter {

    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("sec6-6/bean-event.xml");
        MailSender mailSender = (MailSender)ctx.getBean("mailSender");
        mailSender.sendMail("aaa@bbb.com");
    }

}
